package com.hakim.wfb.customer.service;

import com.hakim.wfb.customer.params.trans.*;
import com.hakim.wfb.customer.result.trans.PointExchangeCalculateView;
import com.hkfs.fundamental.api.data.ObjectResultEx;
import com.hkfs.fundamental.api.data.ResultEx;

/**
 * Created by Administrator on 2017/7/1.
 */
public interface TransactionService {

    /**
     * 新增投资
     *
     * @param param
     * @return
     */
    ResultEx placeOrder(PlaceOrderParameter param);

    /**
     * 积分转账
     *
     * @param param
     * @return
     */
    ResultEx createTransPointOrder(GetTransPointParameter param);

    /**
     * 积分兑换
     *
     * @param parameter
     * @return
     */

    ResultEx exchangePoint(ExchangeCreditPointParameter parameter);

    /**
     * 计算积分兑换
     *
     * @param parameter
     * @return
     */

    ObjectResultEx<PointExchangeCalculateView> calculateExchangePoint(CalculatePointExchangeParameter parameter);
}
